package com.kfm.entity;

import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class User implements Serializable {

    private String id;

    @NotNull(message = "【姓名不能为空】")
    private String username;

    @NotNull(message = "【密码不能为空】")
    private String password;

    private String name;

    private String pic;

    private Integer role;

    private Integer state;
}
